/*
 * OStringStreamImpl.h
 *
 *  Created on: 2011/11/24
 *      Author: naoki
 */

#ifndef INCLUDED_NTENGINE_OSTRINGSTREAMIMPL_H
#define INCLUDED_NTENGINE_OSTRINGSTREAMIMPL_H

namespace NTEngine{

template< class T > inline void OStringStream::write( const T& a ){
	const char* p = reinterpret_cast< const char* >( &a );
	write( p, sizeof( T ) );
}

} //namespace GameLib

#endif // INCLUDED_NTENGINE_OSTRINGSTREAMIMPL_H
